package org.xg.study.pd.event;

import org.xg.study.pd.ICouponDiscount;

import java.math.BigDecimal;

/**
 * @author CMG
 * @version 1.0
 * @description
 * @cLassName NYGCouponDiscount
 * @date 2021/9/18 9:09
 **/
public class NYGCouponDiscount implements ICouponDiscount<Double> {
    /**
     * n元购购买
     * 1. 无论原价多少钱都固定金额购买
     */
    @Override
    public BigDecimal discountAmount(Double couponInfo, BigDecimal skuPrice) {
        return new BigDecimal(couponInfo);
    }
}
